package com.hqd.ch03.v13.beans.property;

import java.beans.PropertyEditor;

/**
 * 属性转换器注册接口
 */
public interface PropertyEditorRegistry {
    /**
     * 注册转换器
     *
     * @param requiredType
     * @param propertyEditor
     */
    void registerCustomEditor(Class<?> requiredType, PropertyEditor propertyEditor);

    /**
     * 查找类型转化器
     *
     * @param requiredType
     * @return
     */
    PropertyEditor findCustomEditor(Class<?> requiredType);
}
